﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOPSingleton
{
class Map
    {
        public int Width {  get; set; }
        public int Height { get; set; }
        static private Map instance = new Map();
        static public Map getInstance()
        {
            return instance;            
        }
        public void ShowInfo()
        {
            Console.WriteLine("高度为{0},宽度为{1}",Height,Width);
        }
        private Map() { }
    }
}
